package com.practice2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class UserTest {
    public static void main(String[] args) {
       ApplicationContext context =
   new ClassPathXmlApplicationContext("user.xml");
       User user1 = (User) context.getBean("user1");
       User user2 = (User)
               context.getBean("user2");
       user1.show();
       user2.show();
           }

}
